<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>更新网点</title>
<script type="text/javascript">
	/**查找带回机构信息*/
	function lookUpExpressCompany() {
		$.pdialog.open('expressCompanyLookUp', 'organization', '公司信息', {
			width : 800,
			height : 400,
			mask : true
		});
	}

	/**
	 * 选择省市区，触发变化，表单参数值传入隐藏域
	 */
	function areaOnChange(obj, str) {
		var $obj = $(obj);
		var text = $obj.find("option:selected").text();
		$("#" + str).val(text);
	}
</script>
</head>
<body>
	<div class="pageContent">
		<form class="pageForm required-validate" method="post" action="updateNetSiteStatus.action" onsubmit="return validateCallback(this, navTabAjaxDone);">
			<input type="hidden" name="rightId" value="${rightId}" /> 
			<input name="id" value="<s:property value='#request.netsite.id' />" type="hidden" />
			<div class="pageFormContent" layoutH="56">
				<HR align=left width="30%" SIZE=2/>
				<h1 style="color:red;font-size:150%">网点状态</h1>
				

				<table>
					<tr>
					<td>&nbsp;&nbsp;&nbsp;</td>
					</tr>
					<tr>
						<td>网点名称：</td>
						<td><s:property value='#request.netsite.name'/></td>
					</tr>
					
					<tr>
					<td>&nbsp;&nbsp;&nbsp;</td>
					</tr>
					<s:if test="#request.netsite.checkStatus==1">
					<tr>
						<td>网点状态：</td>
						<td><s:if test="#request.netsite.enabled==0">
								<select class="" name="enabled" style="width: 193px" >
									<option value="1">可用</option>
									<option value="0" selected="selected">禁用</option>
								</select>
							</s:if> <s:elseif test="#request.netsite.enabled==1">
								<select class="" name="enabled" style="width: 181px">
									<option value="1" selected="selected">可用</option>
									<option value="0">禁用</option>
								</select>
							</s:elseif></td>
					</tr>
					</s:if>
					<s:elseif test="#request.netsite.checkStatus==0">
								<tr>
						<td><span>审核未通过，</span></td>
						<td><span>不能修改状态</span></td>
					</tr>
					</s:elseif>

				</table>	

			</div>
			<div class="formBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
							<s:if test="#request.netsite.checkStatus==1">
								<button type="submit">保存</button>
								</s:if>
							<s:elseif test="#request.netsite.checkStatus==0">
							<button type="submit" disabled="disabled">保存</button>
							</s:elseif>
							</div>
						</div>
					</li>
					<li>
						<div class="button">
							<div class="buttonContent">
								<button type="button" class="close">取消</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</form>
	</div>
</body>
</html>
